<script id="template_adgroup_reporter" type="text/html" >
    <div class="widget adjustpricewidget" id="adgroups_box">
        <div>
            <table cellpadding="0" cellspacing="0" border="0" class="metrotable">
                <colgroup>
                    <col class="con1" width="5%">
                    <col class="con0" width="30%">
                    <col class="con1" width="5%">
                    <col class="con1" width="5%">
                    <col class="con1" width="5%">
                    <col class="con1" width="5%">
                    <col class="con1" width="10%">
                    <col class="con1" width="10%">
                    <col class="con1" width="5%">
                    <col class="con1" width="5%">
                    <col class="con1" width="15%">
                </colgroup>
                <thead>
                <tr>
                    <th></th>
                    <th class="head0 nolborder" style="width:25%;" ><a href="javascript:void(0);">宝贝标题</a></th>
                    <th class="head1 sortable sorting_desc" data-sort='status'><a href="javascript:void(0);">状态</a></th>
                    <th class="head1 sortable" data-sort='impressions'><a href="javascript:void(0);" >展现量</a></th>
                    <th class="head0 sortable" data-sort='click'><a href="javascript:void(0);" >点击量</a></th>
                    <th class="head1 sortable" data-sort='ctr'><a href="javascript:void(0);" >点击率</a></th>
                    <th class="head1 sortable" data-sort='cpc'><a href="javascript:void(0);" >单次点击花费</a></th>
                    <th class="head1 sortable" data-sort='cpm'><a href="javascript:void(0);" >千次展现花费</a></th>
                    <th class="head1 sortable" data-sort='cost'><a href="javascript:void(0);" >花费</a></th>
                    <th class="head0 sortable" data-sort='sales'><a href="javascript:void(0);" >销售额</a></th>
                    <th class="head1 sortable" data-sort='roi'><a href="javascript:void(0);" >投入产出比</a></th>
                </tr>
                </thead>
                <tbody>

                </tbody>
            </table>
        </div>
    </div>
</script>
<script id="template_adgroup_reports" type="text/html" >
    <% for(var i = 0; i < data.length; i ++) { %>
    <% if (data[i].online_status == 'online') { %>
    <tr data-adgroup_id="<%= data[i].adgroup_id %>">
        <td>
            <%if(select_type == 'checkbox'){%>
            <input type="checkbox" style="margin-left:13px;" class="adgroup_select_items" data-adgroup_id="<%= data[i].adgroup_id %>">
            <%}else{%>
            <input type="radio" style="margin-left:13px;" class="adgroup_select_items" data-adgroup_id="<%= data[i].adgroup_id %>">
            <%}%>
        </td>
        <td>
            <div class="imgtxt60">
                <div class="photo">
                    <a class="img60" href="javascript:;">
                        <img src="<%= data[i].img_url %>" alt="<%= data[i].title %>">
                    </a>
                </div>
                <p class="title">
                    <a href="javascript:;"><%= data[i].title %></a>
                </p>
            </div>
        </td>
        <td class="green"><strong>推广中</strong></td>
        <td><%= data[i].display.impressions %></td>
        <td><%= data[i].display.click %></td>
        <td><%= data[i].display.ctr %></td>
        <td><%= data[i].display.cpc %></td>
        <td><%= data[i].display.cpm %></td>
        <td><%= data[i].display.cost %></td>
        <td><%= data[i].display.sales %></td>
        <td><%= data[i].display.roi %></td>
    </tr>
    <% } %>
    <%}%>
</script>